// readonly的妙用
var Axios = /** @class */ (function () {
    // 构造函数可以修改readonly
    function Axios(site) {
        this.site = "https://www.houdunren.com/api";
        this.site = site || this.site;
    }
    Axios.prototype.get = function (url) {
        console.log("\u5730\u5740\u662F" + this.site + "/" + url);
        return [];
    };
    return Axios;
}());
var instance = new Axios();
// instance.site = '111' //无法修改
instance.get('user');
